import pytest

from pages.Huchuan import HuchuanApp


@pytest.fixture()
def huchuan_app():
    huchuanApp = HuchuanApp()
    app_name = huchuanApp.app_name
    huchuanApp.adb_operator.clear_app_data(app_name)
    huchuanApp.device_manager.enter_app(app_name)
    huchuanApp.handler_common_popup()
    yield huchuanApp
